home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / src / alib / csup / clib / g.c < prev    next >
C/C++ Source or Header  |  1994-02-15  |  585b  |  39 lines

  1. /* graphics  kernel routines */
  2. #include <exec/types.h>
  3. #include <exec/nodes.h>
  4. #include <exec/lists.h>
  5. #include <exec/interrupts.h>
  6. #include <hardware/intbits.h>
  7. #include <graphics/graphint.h>
  8.  
  9. #include <clib/exec_protos.h>
  10. #include <clib/graphics_protos.h>
  11.  
  12. int ttskasm();
  13.  
  14. AddTOF(i,p,a)
  15. register struct Isrvstr *i;
  16. int (*p)();
  17. int a;
  18. {
  19.     i->code = ttskasm;
  20.     i->Iptr = i;
  21.     i->ccode = p;
  22.     i->Carg = a;
  23.     AddIntServer(INTB_VERTB,(struct Interrupt *)i);
  24. }
  25.  
  26. RemTOF(i)
  27. struct Isrvstr *i;
  28. {
  29.     RemIntServer(INTB_VERTB,(struct Interrupt *)i);
  30. }
  31.  
  32.  
  33. waitbeam(b)
  34. int b;
  35. {
  36.     while (b>VBeamPos());
  37. }
  38.  
  39.